package model

type NewBeeAdminUser struct {
	AdminUserId   uint   `json:"adminUserId" gorm:"type:bigint;primary_key;not null;autoIncrement"`
	LoginUserName string `json:"loginUserName" gorm:"type:varchar(50);not null"`
	LoginPassword string `json:"loginPassword" gorm:"type:varchar(255);not null"`
	NickName      string `json:"nickName" gorm:"type:varchar(50);not null"`
	Locked        uint   `json:"locked" gorm:"type:tinyint;default:0"`
}

// TableName 自定义表明，不适用默认的mall_users
func (receiver NewBeeAdminUser) TableName() string {
	return "tb_newbee_mall_admin_user"
}
